package edu.sctu.practice.class02.shilaihong.text.text07;

/**
 * Created by admin on 2015/10/14.
 */
public class WuMingFen {
    //定义变量
    private String thema;
    private int quantity;
    private boolean likeSoup;

    public WuMingFen(String a, int b, boolean c) {
        this.thema = a;
        this.quantity = b;
        this.likeSoup = c;
    }

    public WuMingFen(String a, int b) {
        this.thema = a;
        this.quantity = b;
    }

    public WuMingFen(String a, boolean c, int b) {
        this.thema = a;
        this.quantity = b;
        this.likeSoup = c;
        if (c == true) {
            String b1 = "带汤的";
            System.out.println(thema + quantity + "两" + b1);
        }
    }

    public void check() {
        if (likeSoup == true) {
            String b1 = "带汤的";
            System.out.println("面码：" + thema + "\n分量" + quantity + "\n" + b1);
        } else {
            String b1 = "不带汤的";
            System.out.println("面码：" + thema + "\n分量" + quantity + "\n" + b1);
        }
    }
}

